package day08_Extends.demo10_extends;
//方法重写注意事项:
//私有方法不能被重写
//子类访问修饰符不能比父类低(public>默认>private)
public class Person {
    public void test(){
        System.out.println("哒哒哒");
    }
}
